package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_InventoryPeriod", description = "盘点期初")
@TableName(value = "WMS_InventoryPeriod")
public class WmsInventoryPeriod extends FBaseEntity implements Serializable {


    
    @NotNull(message="[盘点单主表ID]不能为空")
    @ApiModelProperty("盘点单主表ID")
    @TableField(value = "mainId")
    private Long mainId;
    
    @NotBlank(message="[条码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("条码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "barcode")
    private String barcode;
    
    @NotBlank(message="[条码数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("条码数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private BigDecimal qty;
    
    @NotNull(message="[仓库id]不能为空")
    @ApiModelProperty("仓库id")
    @TableField(value = "wHID")
    private Long wHID;
    
    @NotNull(message="[库位id]不能为空")
    @ApiModelProperty("库位id")
    @TableField(value = "areaId")
    private Long areaId;
    
    @NotNull(message="[物料id]不能为空")
    @ApiModelProperty("物料id")
    @TableField(value = "materialId")
    private Long materialId;

}

